﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace ConfApp.Models
{
    public class Speaker
    {
        public Speaker()
        {
            Sessions = new List<Session>();    
        }

        public string FullName
        {
            get { return string.Format("{0} {1}", FirstName, LastName); }
        }

        public string Employer
        {
            get { return Company.ShortTitle; }
        }

        public int ID { get; set; }
        public string QualifiedUrl
        {
            get { return string.IsNullOrEmpty(PictureUrl) ? 
                @"\Resources\SpeakerPictures\no-pic.png" : 
                "http://www.mssinergija.net/PublishingImages/Predavaci11/" + PictureUrl; }
        }
        public string PictureUrl { get; set; }
        public byte[] Picture { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Bio { get; set; }
        public Company Company { get; set; }
        public List<Session> Sessions { get; set; }

        public override string ToString()
        {
            return string.Format("[{0}] {1} {2}", ID, FirstName, LastName);
        }
    }
}
